package cn.edu.scau.cmi.chenjiale.composite.clarity;

/**
 * 透明形式的组织模式的个体类
 * 
 * @author chen
 * @date 2019/04/16
 *
 */
public class ClarityIndividual extends ClarityOrganization {

	public ClarityIndividual() {
	}

	public ClarityIndividual(String name) {
		super(name);
	}

	@Override
	public String display() {
		return "个体名称;" + name;
	}

	@Override
	public boolean addChild(ClarityOrganization organization) {
		System.out.println("个体没有权限添加组织");
		return false;
	}

	@Override
	public boolean removeChild(ClarityOrganization organization) {
		System.out.println("个体没有权限移除组织");
		return false;
	}

}
